package main

import (
	"fmt"
	"strings"
)

func UserInput() bool {
	var (
		Username string
	)
	fmt.Print("please input your string>>>: ")
	fmt.Scanln(&Username)
	if strings.HasPrefix(Username, "A") || strings.HasPrefix(Username, "a") {
		return true
	} else {
		return false
	}
}

func main() {
	for {
		result := UserInput()
		if result {
			fmt.Println("Beginning with A or a ")
			break
		} else {
			fmt.Println("Not Beginning with A or a")
			fmt.Println("enter q exit   enter c continue")
			var userEnter string
			fmt.Scanln(&userEnter)
			switch userEnter {
			case "q":
				break
			case "c":
				continue
			default:
				fmt.Println("你他妈的别乱输")
			}
			break
		}
	}

}
